package cn.edu.scau.cmi.liuyonglin.comprehensive.fuctionClass;

import java.io.Serializable;

public class User implements Serializable{
	String userName;
	String key;
	String userType;//Administrators,Teacher,Student
	User(){};
	User(String userName,String key,String userType){
		this.userName = userName;
		this.key = key;
		this.userType = userType;
	}
	User(String userName,String key){
		this.userName = userName;
		this.key = key;
		this.userType = "Teacher";
	}
	@Override
	public String toString() {
		return this.userName + this.userType;
	}
	@Override 
	public boolean equals(Object o) {
		User user = (User) o ; 
		return this.userName.equals(user.userName) ;
	}
}
